package com.jcbase.job;

import java.util.TimerTask;

import org.apache.log4j.Logger;

import com.jcbase.model.SysObj;

public class DataSourceInJob extends TimerTask {
	private static Logger log  = Logger.getLogger(AdUserInJob.class);
	String data_host;
	String data_user;
	String data_password;
	
    public DataSourceInJob(String data_host, String data_user, String data_password) {
		super();
		this.data_host = data_host;
		this.data_user = data_user;
		this.data_password = data_password;
		
	}


	@Override  
    public void run() {  
		log.info("开始执行数据库同步");  
        SysObj.me.dataIn(this.data_host,this.data_user,this.data_password);
        log.info("开始执行数据库同步执行完成");  
    }


	public String getData_host() {
		return data_host;
	}


	public void setData_host(String data_host) {
		this.data_host = data_host;
	}


	public String getData_user() {
		return data_user;
	}


	public void setData_user(String data_user) {
		this.data_user = data_user;
	}


	public String getData_password() {
		return data_password;
	}


	public void setData_password(String data_password) {
		this.data_password = data_password;
	}  
    

}
